package com.ygs.secs.model;

import java.io.Serializable;

/**
 * 班级
 */
public class Clzaa implements Serializable {
    //班级ID自增
    private Integer clazzid;

    //班级名
    private String clazzname;

    //所属辅导员
    private Instructor instructor;

    //所属专业
    private Profession profession;

    private static final long serialVersionUID = 1L;

    public Integer getClazzid() {
        return clazzid;
    }

    public void setClazzid(Integer clazzid) {
        this.clazzid = clazzid;
    }

    public String getClazzname() {
        return clazzname;
    }

    public void setClazzname(String clazzname) {
        this.clazzname = clazzname;
    }

    public Instructor getInstructor() {
        return instructor;
    }

    public void setInstructor(Instructor instructor) {
        this.instructor = instructor;
    }

    public Profession getProfession() {
        return profession;
    }

    public void setProfession(Profession profession) {
        this.profession = profession;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", clazzid=").append(clazzid);
        sb.append(", clazzname=").append(clazzname);
        sb.append(", instructid=").append(instructor.getInstructorid());
        sb.append(", professionid=").append(profession.getProfessionid());
        sb.append("]");
        return sb.toString();
    }

}